package com.ttg.web.dao.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttg.common.entities.BasePage;
import com.ttg.model.dto.VipDetailDto;
import com.ttg.model.mapper.VipBindAccountMapper;
import com.ttg.model.pojo.VipBindAccount;
import com.ttg.web.dao.VipBindAccountDao;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class VipBindAccountDaoImpl extends ServiceImpl<VipBindAccountMapper, VipBindAccount> implements VipBindAccountDao {
    @Override
    public List<VipBindAccount> getVipBindAccount(VipDetailDto vipDetailDto) {
        LambdaQueryWrapper<VipBindAccount> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(VipBindAccount::getVipId,vipDetailDto.getVipId());
        List<VipBindAccount> vipBindAccounts = baseMapper.selectList(queryWrapper);
        return vipBindAccounts;
    }


}
